<?php
class ShowstuchartAction extends CommonAction {
    function _filter(&$map){
        $map['userid'] = array('eq',session("userid"));
        //$map['wymc'] = array('like',"%".$_POST['wymc']."%");
    }
    public function index() {
        //列表过滤器，生成查询Map对象
        $map = $this->_search();
        if (method_exists($this, '_filter')) {
            $this->_filter($map);
        }
        //$name = $this->getActionName();
        $model = D('Upexcel');
        if (!empty($model)) {
            $this->_list($model, $map);
        }

        //读取试卷信息列表
        $exinfo     = D('ExaminfoView');
        $list_ex    = $exinfo->field('id,exName,exCount,createtime,subjectName')->order('id desc')->select();
        //dump($exinfo);
        if(!empty($exinfo)){
            $this->assign('exinfo',$list_ex);
        }
        //echo $exinfo->getLastsql();
        $this->display();
        return;
    }



}

?>